package com.easy.project.convert;

import com.easy.project.domain.dto.system.MenuEditDTO;
import com.easy.project.domain.po.system.SysMenuPO;
import com.easy.project.domain.po.system.SysRolePO;
import com.easy.project.domain.vo.system.SysMenuVO;
import com.easy.project.domain.vo.system.SysRoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.TargetType;

import java.util.List;

@Mapper(componentModel = "spring")
public interface MenuDomainConvert {

    SysMenuVO poToVo(SysMenuPO sysMenuPO);

    List<SysMenuVO> poListToVoList(List<SysMenuPO> sysMenuPOList);

    SysMenuPO editDtoToPo(MenuEditDTO menuEditDTO);

    void editDtoToPo(MenuEditDTO menuEditDTO,@MappingTarget SysMenuPO sysMenuPO);
}
